package com.jz.netthings.application.providerReg.mapper.mysql;

import com.jz.netthings.application.providerReg.bean.ProviderReg;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zyl
 * @since 2019-02-28
 */
public interface ProviderRegMapper extends BaseMapper<ProviderReg> {

    List<ProviderReg> getProviderRegister(ProviderReg providerRegister);

    @Select("SELECT MIN(createTime) FROM provider_reg WHERE createTime BETWEEN #{beginTime} AND #{endTime}")
    String getMinRegTime(@Param("beginTime")String beginTime, @Param("endTime")String endTime);
}
